import request from '@/utils/request'

// 查询下载进度列表
export function listResDload(query) {
  return request({
    url: '/ips/resDload/list',
    method: 'get',
    params: query
  })
}

// 查询下载进度列表(无分页)
export function resDloadList(query) {
  return request({
    url: '/ips/resDload/resDloadList',
    method: 'get',
    params: query
  })
}

// 查询下载进度详细
export function getResDload(id) {
  return request({
    url: '/ips/resDload/' + id,
    method: 'get'
  })
}

// 新增下载进度
export function addResDload(data) {
  return request({
    url: '/ips/resDload/save',
    method: 'post',
    data: data
  })
}

// 修改下载进度
export function editResDload(data) {
  return request({
    url: '/ips/resDload/update',
    method: 'put',
    data: data
  })
}

// 删除下载进度
export function delResDload(id) {
  return request({
    url: '/ips/resDload/remove/' + id,
    method: 'delete'
  })
}

// 导出下载进度
export function exportResDload(query) {
  return request({
    url: '/ips/resDload/export',
    method: 'get',
    params: query
  })
}
